home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / bin / gnome-language-selector < prev    next >
Text File  |  2009-10-23  |  871b  |  34 lines

  1. #!/usr/bin/python
  2.  
  3.  
  4. import pygtk
  5. pygtk.require("2.0")
  6. import gtk
  7. import gtk.glade
  8.  
  9. import gettext
  10. import sys
  11. import os
  12.  
  13. from LanguageSelector.gtk.GtkLanguageSelector import GtkLanguageSelector
  14. from gettext import gettext as _
  15. from optparse import OptionParser
  16.  
  17. if __name__ == "__main__":
  18.         gettext.bindtextdomain("language-selector", "/usr/share/locale")
  19.         gettext.textdomain("language-selector")
  20.  
  21.     parser = OptionParser()
  22.     parser.add_option("-n", "--no-verify-installed-lang-support",
  23.               action="store_false", dest="verify_installed",
  24.               default=True,
  25.               help=_("don't verify installed language support"))
  26.     parser.add_option("-d", "--datadir",
  27.               default="/usr/share/language-selector/",
  28.               help=_("alternative datadir"))
  29.     (options, args) = parser.parse_args()
  30.  
  31.     app = GtkLanguageSelector(datadir=options.datadir,
  32.                   options=options)
  33.     app.run()
  34.